package com.sportcardio.sportcardioui;

import java.net.URL;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

/**
 *
 * @author pawaptz
 */
public class NewCardApplication extends Application{

    @Override
    public void start(Stage stage) throws Exception {
        
        String protocol = "file:///";
        String resourceDir = "/src/main/resources/";
        String fxmlPath = protocol + System.getProperty("user.dir").replace("\\", "/") + resourceDir + "fxml/resources/NewCardApplication.fxml";
       
        URL localUri = new URL(fxmlPath);
        Parent root = FXMLLoader.load(localUri);
        
        stage.setTitle("Создать новую карточку");
        stage.setScene(new Scene(root));
        stage.show();
    }
    
}
